<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="user/_fragment :: head(~{::title})">
    <title>博客管理后台</title>
</head>
<body class="hold-transition skin-blue sidebar-mini">

<!--头部导航-->
<nav th:replace="user/_fragment :: left-menu"></nav>
<!----------------------------------------------------------------------------------------->
<!-- 内容区域 -->

<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h1 class="box-title" th:text="${passage.title}">文章标题</h1>
            </div>
            <!-- /.box-header -->
            <div class="box-body no-padding">
<!--                <div class="mailbox-read-info">
                    <h4 th:text="${passage.described}">描述</h4>
                    <h5 style="margin-top: 7px">
                        <button type="button" class="btn btn-default btn-sm" th:each="k:${passage.keywords}" th:text="${k.keywordName}">关键词</button>
                        <span class="mailbox-read-time pull-right" th:text="${passage.createDate}">15 Feb. 2016 11:03 PM</span>
                    </h5>
                </div>-->
                <!-- 正文 -->
                <div class="mailbox-read-message" th:utext="${passage.content}"></div>
                <!-- /.mailbox-read-message -->
            </div>
            <!-- /.box-body -->
            <div class="box-footer">

            </div>
            <!-- /.box-footer -->
            <div class="box-footer">
                <div class="pull-right">
                    <button type="button" class="btn btn-default"><i class="fa fa-thumbs-up"></i> 点赞</button>
                    <button type="button" class="btn btn-default"><i class="fa fa-commenting"></i> 评论</button>
                </div>
                <button type="button" class="btn btn-default"><i class="fa fa-edit"></i> 编辑</button>
                <button type="button" class="btn btn-default"><i class="fa fa-trash-o" data-toggle="modal" data-target="#myModal"></i> 删除</button>
                <!--删除文章对话框
                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
                    <div class="modal-dialog">
                        <div class="modal-header">
                            <div class="modal-header">
                                <h4 class="modal-title" id="myModalLabel">确认要删除该文章吗？</h4>
                            </div>
                        </div>
                        <div class="modal-content">
                            <div>刚删除的文章可在"已删除"分类中查找到 一个月后会完全删除</div>
                        </div>
                        <form th:action="@{/passage/del/{id}(id=${passage.passageId})}" method="post">
                            <div class="modal-footer" style="margin-top: 10%">
                                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                <button type="submit" class="btn btn-primary">添加</button>
                            </div>
                        </form>

                    </div>
                </div>-->
            </div>
            <!-- /.box-footer -->
        </div>
        <!-- /. box -->
    </section>
</div>

<!-- 内容区域 /-->
<!----------------------------------------------------------------------------------------->
<!--底部footer-->
<footer th:replace="user/_fragment :: footer"></footer>
</body>

<th:block th:replace="user/_fragment :: script">
</th:block>

<script>
/*    // 设置激活菜单
    function setSidebarActive(tagUri) {
        var liObj = $("#" + tagUri);
        if (liObj.length > 0) {
            liObj.parent().parent().addClass("active");
            liObj.addClass("active");
        }
    }
    $(document).ready(function() {
        // 激活导航位置
        setSidebarActive("collect");
    });*/
</script>

</html>
